# Loocker.gd

## Because they didn't give me an SDK, I said fuck them

### Description

Loocker.gd is a library that serves as a [Loot Locker](https://lootlocker.com/) integration for Godot 3.5. It serves as a simple drop-in singleton that you may add to your project and use by calling it as ```Loocker```.

### Why would I do this? (gasp)

I started this out of necessity, as they only provide an Unreal and Unity "SDK", both of which simply do API requests. You can even see in their documentation that every method returns a response! So this is essentially as close to official as it gets, as it literally does the same as official.

### Example

You can read data from the returned response like so:
```
response = Loocker.get_messages()
if !response.success:
	print("Response was not success *Sad face*")
```

### Progress (the goodies)

So far only guest login, messages, and session end are on the repo (i should really clean up the rest of my code so i can put it here (oh god)).

This is my everything list (get it?(it's spanish joke(dw, it wasn't that good)))

- Leaderboard get and post
- Playername changing
- White Label login
- Asset listing
- Catalog listing
- UGC get and post
- Economy
- Character & Progression
- Everything else

### Contributing (or not, you should take care of your mental health(serious))

There is BARELY any sense of styling conventions across this code base (my testing branch is WORSE), so anything is appreciated as long as it looks kinda like the rest of the code.

The two rules are to ```snake_case``` function names from the Unity SDK and to always return a ```JSON.parse(response[3].get_string_from_utf8()).result```